package org.example.StudentManagementSystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

@Data
@TableName("timetable")
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "课程时间表实体类")
public class Timetable {
    @TableId(type = IdType.AUTO, value = "id")
    @Schema(description = "时间表ID", example = "1")
    private Integer id;

    @Schema(description = "课程编号", example = "101")
    private int number;

    @Schema(description = "课程时间", example = "2023-12-01")
    private Date classTime;

    @Schema(description = "班级ID", example = "2")
    private Integer classId;

    @Schema(description = "课程ID", example = "3")
    private Integer courseId;

    @Schema(description = "创建时间", example = "2023-10-01")
    private Date createTime;
}
